/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui;

/**
 *
 * @author vupont
 */
public class Data {

    private String srcIP;
    private String srcPort;
    private String destIP;
    private String destPort;

    public Data() {
        this("", "", "", "");
    }

    public Data(String srcIP, String srcPort, String destIP, String destPort) {
        setSrcIP(srcIP);
        setSrcPort(srcPort);
        setDestIP(destIP);
        setDestPort(destPort);
    }

    public void setSrcIP(String srcAddr) {
        srcIP = srcAddr;
    }

    public String getSrcIP() {
        return srcIP;
    }

    public void setSrcPort(String sPort) {
        srcPort = sPort;
    }

    public String getSrcPort() {
        return srcPort;
    }

    public void setDestIP(String destAddr) {
        destIP = destAddr;
    }

    public String getDestIP() {
        return destIP;
    }

    public void setDestPort(String dPort) {
        destPort = dPort;
    }

    public String getDestPort() {
        return destPort;
    }

    public String toString() {
        return (srcIP + ":" + srcPort + " " + destIP + ":" + destPort);
    }
}
